/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import java.util.Locale;
import javax.swing.UIManager;
import ui.gui.MainMenu;

/**
 *
 * @author Mads Nielsen
 */
public class Application {

    public static void main(String[] args) {

        try {
            ItemController.loadData();
            CustomerController.loadData();
            SaleController.loadData();

        } catch(Exception e) {
            String msg = "Failed loading data: " + e.getMessage();
            System.err.println(msg);
        }

        try {
            // Tries to make the java interface match the systems
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch(Exception e) {
            System.err.println("Could not load system look and feel");
        }

        Locale.setDefault(new Locale("da", "DK"));

        new MainMenu().setVisible(true);
    }
}
